<template>
  <div :class="`right_side_drawer ${isOpen ? 'open' : 'close'}`">
    <div class="icon_switch" id="switch" @click="changeIsOpen">
      <span class="title">填报说明</span>
    </div>
    <div class="menu_detail">
      <h3>注：</h3>
      <ol>
        <li>审计发现问题按本企业二级及以上审计部门发现的所有问题进行汇总归纳分析填列。</li>
        <li>问题类型包括但不限于：贯彻国家重大决策部署及国资监管任务、国企改革三年行动、经营业务合规、会计信息质量、投资管理、重大经营风险、依法纳税、内控缺陷和问题、境外国有资产管理以及八项规定和廉洁从业等。</li>
        <li>具体问题(典型案例)按问题造成损失金额、影响程度或问题性质数量等维度归纳分析填列,典型案例要言简意赅，时间、问题性质、涉及金额等要素表述准确。</li>
        <li>完善制度、挽回损失、追责问责等填表要求同附表1。</li>
      </ol>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isOpen: false,
    }
  },
  methods: {
    changeIsOpen() {
      this.isOpen = !this.isOpen
    },
  },
}
</script>

<style lang="less" scoped>
.right_side_drawer {
  height: 62%;
  width: 450px;
  position: fixed;
  right: 0;
  top: 30%;
  padding: 10px 0px 10px 10px;
  display: flex;
  z-index: 100;
  transform: translateX(385px);
  overflow-y: scroll;
}
.right_side_drawer>div{
   pointer-events:auto;
}
.icon_switch {
  width: 55px;
  height: 125px;
  writing-mode: vertical-lr;
  text-align: center;
  background-color: rgb(57, 86, 166);
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  font-size: 20px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  cursor: pointer;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  .title {
    &::before {
      content: '*';
      color: red;
      display: inline-block;
      margin-bottom: 5px;
    }
  }
}

.menu_detail {
  width: calc(100% - 60px);
  height: 100%;
  background-color: rgb(243, 246, 255);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  padding: 30px 15px;
  box-sizing: border-box;
  h3 {
    color: red;
  }
  ol {
    color: red;
    li {
      margin-top: 10px;
    }
  }
}

.open {
  transform: translateX(10px);
  transition: transform 0.3s linear;
}

.close {
  transform: translateX(385px);
  transition: transform 0.3s linear;
}
</style>